
import Vue from 'vue';
import Vuex from 'vuex';
import stroke from './modules/stroke'
import guider from './modules/guider'
import group from './modules/group'
import travelgency from './modules/travelgency'
import clients from './modules/clients'
import journal from './modules/journal'
Vue.use(Vuex);
// Vue.use(Polyfill);

let http='https://www.wiicent.com:8001';
// var http='http://192.168.11.188:8001';
const state = {
    pageNum:50,//table每页多少条
    thisMOdule:'module',//leftNav切换时显示对应的模块tab
    interface:{
        // login:http+'/index/login',//登录
        login:`${http}/index/otherLogin`,//后台管理系统登录
        renyuanStatus: `${http}/wbXchRenyuan/setWbXchRenyuanStatus`, //成员入团、加入行程接口
        xchBaseList:`${http}/wbXchBaseOther/wbXchBaseOtherIndex`,//行程管理列表
        ptXchBaseGetPosition:`${http}/ptXchBase/ptXchBaseGetPosition`, //查看位置
        wbXchBaseAdd:`${http}/wbXchBase/wbXchBaseAdd`, //新建行程
        xchBaseView:`${http}/xchBase/xchBaseView`,//行程编辑获取
        setXchBase:`${http}/wbXchBaseOther/wbXchBaseOtherSet`,//行程编辑
        setXchScheduleDay:`${http}/xchScheduleDay/setXchScheduleDay`,//日程修改
        xchScheduleDayList:`${http}/xchScheduleDay/xchScheduleDayList`,//获取日程
        xchBaseStatus:`${http}/xchBase/xchBaseStatus`,//更新行程状态
        setXchMsg:`${http}/xchBase/setXchMsg`,//公告通知
        xchChutuanView:`${http}/xchChutuan/xchChutuanView`, //出团通知获取
        setXchChutuan:`${http}/xchChutuan/setXchChutuan`, //出团通知修改
        wbXchRenyuanList:`${http}/wbXchRenyuan/wbXchRenyuanList`,//成员名单表单

        setXchRenyuan:`${http}/xchRenyuan/setXchRenyuan`,//成员增加/修改
        xchRenyuanView:`${http}/xchRenyuan/xchRenyuanView`,//成员详情
        UploadRenyuan:`${http}/wbExcel/wbUploadRenyuan`,//导入成员
        DelRenyuan:`${http}/wbDel/wbDelRenyuan`, //人员删除

        wbXchBaseDetailData:`${http}/wbXchBase/wbXchBaseDetailData`, //获取复制行程
        wbXchBaseCopy:`${http}/wbXchBase/wbXchBaseCopy`,//提交复制行程

        //日志
        BlogPingtaiIndex:`${http}/wbXchBlog/wbXchBlogHoutaiIndex`, //日志列表
        ptXchBlogIndex:`${http}/ptXchBlog/ptXchBlogIndex`, //日志详情
        BlogExportAuthorToWord:`${http}/xchBlog/xchBlogExportAuthorToWord`,//导出日志

        // 地区
        areaList:`${http}/area/areaList`,//地区联动
        // 删除
        DelById:`${http}/bkDel/bkDelById`,

        // 导游管理
        guiderList: `${http}/wbGuide/getWbGuideList`, //导游列表
        addGuider: `${http}/wbGuide/setWbGuide`, //导游设置信息
        deleteGuider: `${http}/wbGuide/cxDelOneById`, //删除导游
        guiderView: `${http}/wbGuide/wbGuideView`, //导游详情
        bindGuider: `${http}/wbGuide/wbGuideSetBind`, //导游绑定/解绑接口
        searchPhone: `${http}/customer/customerSearchByPhone`,

      //派团管理
        groupList: `${http}/wbPaituan/getWbPaituanList`, //派团列表
        addGroup: `${http}/wbPaituan/setWbPaituan`, //派团
        deleGroup: `${http}/wbPaituan/wbDelOneById`,
        groupView: `${http}/wbPaituan/wbPaituanView`,
        deleFile: `${http}/wbPaituan/wbDelFile`,

      //旅行社
        travelGencyList: `${http}/wbTravelGency/getWbTravelGencyList`, //
        addtravelGency: `${http}/wbTravelGency/setWbTravelGency`, //
        deleTravelgency: `${http}/wbTravelGency/cxDelOneById`,
        travelgencyView: `${http}/wbTravelGency/wbTravelGencyView`,

      // 客户资料
        customerList: `${http}/wbKefuData/getWbKefuDataList`,
        addCustomer: `${http}/wbKefuData/setWbKefuData`,
        customerView: `${http}/wbKefuData/wbKefuDataView`,
        deleCustomer: `${http}/wbKefuData/cxDelOneById`
    }
};


export default new Vuex.Store({
    state,
    modules: {
        stroke,
        guider,
        group,
        travelgency,
        clients,
        journal
    },
});
